How to change the color of ElevatedButton when the function condition is met

welcome to shbcf.ru